<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>管理员界面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!--css-->
    <link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/adminlte.min.css">
    <link rel="stylesheet" href="/css/zui.css">
    <link rel="stylesheet" href="/css/zui.datagrid.css">
    <link rel="stylesheet" href="/css/zui.lite.css">
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
    <link rel="stylesheet" href="/css/sysmonitor.css">
    <!--js-->
    <script src="/js/jquery-3.2.1.min.js"></script>
    <script src="//cdn.bootcss.com/blueimp-md5/2.3.1/js/md5.min.js"></script>
    <script src="/js/bootstrap.bundle.min.js"></script>
    <script src="/js/adminlte.js"></script>
    <script src="/js/zui.js"></script>
    <script src="/js/zui.chart.js"></script>
    <script src="/js/zui.datagrid.js"></script>
    <script src="/js/sysmonitor.js"></script>
</head>
<body>
<div class="wrapper">
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        <ul class="navbar-nav">
            <li class="nav-item d-none d-sm-inline-block">
                <a href="javascript:void(0)" onclick="reloadMainRight('/syspages/syscontext.html')" class="nav-link">Home</a>
            </li>
            <li class="nav-item d-none d-sm-inline-block">
                <a href="#" class="nav-link">Contact</a>
            </li>
            <li class="nav-item d-none d-sm-inline-block">
                <a href="/api/lockscreen" class="nav-link"><i class="fa fa-lock" aria-hidden="true"></i></a>
            </li>
        </ul>

        <!-- Right navbar links -->
        <ul class="navbar-nav ml-auto">
            <!-- Messages Dropdown Menu -->

            <!--config Dropdown Menu-->
            <li class="nav-item dropdown  navbar-right">
                <a class="nav-link" data-toggle="dropdown" href="#">
                    <i class="fa fa fa-cog"></i>
                </a>
                <div class="dropdown-menu dropdown-menu-right">
                    <a href="javascript:void(0)" onclick="reloadMainRight('/syspages/recover-password.html')" class="dropdown-item">
                        <!-- Message Start -->
                        <span>修改密码</span>
                        <!-- Message End -->
                    </a>
                    <a href="javascript:void(0);" onclick="loginout()" class="dropdown-item">
                        <!-- Message Start -->
                        <span>退出登录</span>
                        <!-- Message End -->
                    </a>
                </div>

            </li>
        </ul>
    </nav>
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Sidebar -->
        <div class="sidebar">
            <!-- Sidebar user panel (optional) -->
            <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img th:src="${session.admin.pic} " data-toggle="lightbox"  class="img-circle elevation-2" alt="User Image">
                </div>
                <div class="info">
                    <a href="javascript:void(0)" onclick="reloadMainRight('/syspages/syscontext.html')" class="d-block"><h1 th:text="${session.admin.name}"></h1></a>
                </div>
            </div>

            <!-- Sidebar Menu -->
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                    data-accordion="false">
                    <!-- Add icons to the links using the .nav-icon class
                         with font-awesome or any other icon font library -->
                    <li class="nav-item has-treeview">
                        <a href="#" class="nav-link active">
                            <i class="nav-icon fas fa-desktop"></i>
                            <p>
                                主界面
                                <i class="right fas fa-angle-left"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            <li class="nav-item">
                                <a href="javascript:void(0)" onclick="reloadMainRight('/syspages/syscontext.html')" class="nav-link active">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>界面信息</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link active">
                            <i class="nav-icon fas fa-th"></i>
                            <p>
                                菜单
                                <i class="right fas fa-angle-left"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            <li class="nav-item">
                                <a href="javascript:void(0)" onclick="reloadMainRight('/syspages/menu.html')"
                                   class="nav-link active">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>菜单管理</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item">
                        <a href="#" class="nav-link active">
                            <i class="nav-icon fas fa-user-circle"></i>
                            <p>
                                用户
                                <i class="right fas fa-angle-left"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            <li class="nav-item">
                                <a  href="javascript:void(0)" onclick="reloadMainRight('/syspages/user.html')"
                                   class="nav-link active">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>用户管理</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </nav>
            <!-- /.sidebar-menu -->
        </div>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <div id="context">
        </div>
    </div>
    <!-- /.content-wrapper -->

    <footer class="main-footer">
        <strong>Copyright &copy; 2019 <a href="#">XIAO GUO QING</a>.</strong>
        <div class="float-right d-none d-sm-inline-block">
            <b>Version</b> 3.0.0
        </div>
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Control sidebar content goes here -->
    </aside>
    <!-- /.control-sidebar -->
</div>

</body>
</html>
